package com.smarttourism.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 入住登记表
 * @TableName checkin
 */
@Data
public class Checkin implements Serializable {
    /**
     * 入住登记id
     */
    private Integer id;

    /**
     * 入住旅客
     */
    private String customerId;

    /**
     * 订单id
     */
    private Integer orderId;

    /**
     * 逻辑删除
     */
    private Integer del;

    /**
     * 入住状态
     */
    private String status;

    /**
     * 是否包含早餐
     */
    private Integer isbreakfast;
    // 入住登记人员信息
    private List<Customer> customers;
    // 入住关联的订单信息
    private Roomorder roomorder;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;

    private static final long serialVersionUID = 1L;
}